<?xml version='1.0' encoding='UTF-8' ?>
<!--
    Document   : property
    Created on : Jan 28, 2012, 4:31:33 PM
    Author     : Oscar Ivan Prado
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:icecore="http://www.icefaces.org/icefaces/core"
                xmlns:ace="http://www.icefaces.org/icefaces/components"
                xmlns:ice="http://www.icesoft.com/icefaces/component"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <fieldset>
        <ice:panelGrid columns="4">
            <ice:selectOneMenu 
                style="width: 200px; text-transform: uppercase" 
                partialSubmit="true"
                onchange="submit();"
                valueChangeListener="#{codeGeneratorBackingBean.onSelectedProject}"
                value="#{codeGeneratorBackingBean.projectName}"
                styleClass="styledselect">
                <f:selectItem itemLabel="#{i18n['generator.project.select']}" itemValue="-"/>
                <c:forEach items="#{codeGeneratorBackingBean.projects}" var="project">
                    <f:selectItem itemLabel="#{project.name}" itemValue="#{project.name}"/>
                </c:forEach>
            </ice:selectOneMenu>
            <ice:commandButton value="Compile" actionListener="#{codeGeneratorBackingBean.onCompile()}" styleClass="form-submit"/>
            <ice:commandButton value="Clear Solution" styleClass="form-submit"/>
            <ice:commandButton value="Download" styleClass="form-submit"/>
        </ice:panelGrid>
        
        
    </fieldset>   
</ui:composition>